package com.hs.mpdemo_01.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hs.mpdemo_01.entity.Users;
import org.apache.catalina.User;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 */

public interface UserService {
    List<Users> findAll();

    /**
     * 分页查询
     */
    Page<Users> fidnByPage(Integer pageNum,Integer pageSize);

    int addUser(Users users);

    int updateUser(Users users);

    int removeUser(Integer id);

    /**
     * 条件查询
     * @param users 将查询条件封装到实体类中
     * @return java.util.List<com.hs.mpdemo_01.entity.Users>
     */
    List<Users> findByCondition(Users users);

    List<Users> findByLambda(Users users);

    int removeById(Integer id);

    Users findByUsername(String username);
}
